When you install VNC in centos6.3, the following error occurs:
[Root @ localhost media] # service vncserver startstarting VNC Server: 1: Root warning: the first attempt to start xvnc failed, possibly because the fontcatalog is not properly configured. attempting to determine an appropriatefont path for this system and restart xvnc using that font path... cocould not start
When you install VNC in CentOS 6.3, the following error occurs:
[Root @ localhost media] # service vncserver startStarting VNC server: 1: rootWARNING: The first attempt to start Xvnc failed, possibly because the fontCatalog is not properly configured. Attempting to determine an appropriateFont path for this system and restart Xvnc using that font path...Cocould not start
ConnectionCentOS: Use TigerVNC Viewer to connect to ip Address: 1Windows: use Real VNC Viewer to connect to ip Address: 1Enter the password to accessError records and solutions:
Error message: [root @ localhost media] # service vncserver startStarting VNC server: 1: root WARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured. attempting to determine an appropriatefont path for this system and res
VNC is a bit like a remote Desktop for Windows, and it's handy to use in real-world work.
1, install Vncserver service
# yum Install Tigervnc-server
# Service Vncserver Status
Xvnc is stopped
2, view vncserver status, start vncserver input initialization password
# Service Vncserver Status
Xvnc is stopped
# Vncserver
You'll require a password to access your desktops.
Password:
Verify:
Xauth: (stdin): 1:b
.
Ii. vino
Vino is a VNC software integrated in GNOME. It is installed by default when the gnome environment is installed. Click "System"-"Preferences"-"Remote Desktop" to open the Configuration window.
After "allow others to view your desktop" is selected, vino starts the server process vino-server and listens to TCP port 5900. If "allow other users to control your desktop" is not selected, the client can only watch and cannot manipulate it.
The vino mode is very different from the
is/root/. VNC/localhost. localdomain: 2.log
Some common problems are attached:
VNC Viewer: http://download.csdn.net/source/1080853
If the server is restarted later, you need to re-enter the vncserver before you can log on. If the server has never been restarted, you do not need. If you want to kill the vncserver process, run vncserver: 1 kill. 1 indicates the ID of the display.
(1) reset the VNC Password[Root @ localhost ~] # VncpasswdPassword:Verify:(2) Start and kill vncserver[Root @ localhos
the two statements (that is, remove the comment)
Change myusername to the user name you log on to. Set the preceding number. vnc is defined by port + desktop number,
The vnc port is 5900. Here, my desktop number is 10. When connecting to the vnc, the port is 5900 + 10, that is, 5910.
"1" in VNCSERVERARGS [1] indicates that I only open services to one user.
3. Set the password
[Root @ localhost ~] # Vncserver
After entering the vncserver, the system prompts you to set the password.You will requi
'manual page.
# VNCSERVERS = "10: myusername"
# VNCSERVERARGS [1] = "-geometry 800x600-nolisten tcp-localhost"
Remove # VNCSERVERS = "10: myusername"
# VNCSERVERARGS [1] = "-geometry 800x600-nolisten tcp-localhost" the "#" before the two statements (that is, remove the comment)
Change myusername to the user name you log on to. set the preceding number. vnc is defined by Port + desktop number,
The vnc port is 5900. here, my desktop number is 10. when connecting to the vnc, the port is 5900 + 10
: [Dix] cocould not init font path element/usr/share/X11/fonts/MISC, removing from list!
Solution: Install the three packages Yum install libxfont xorg-x11-xinit xorg-x11-fonts-Type1
Then restart:
2. Today, the latest centos version is 6.4. If it is centos6.4 or earlier, run the following command:
After Yum install-y tigervnc * is run, the following error is displayed:
Warning: the first attempt to start xvnc failed, possibly because the f
information on TigerVNC.Vncviewer: unable to open display ""
Because vncviewer needs to be executed in the desktop environment.
Another way is to add "-vnc: 0" when executing the qemu-kvm command, you can use tools such as tightvnc to connect to port 5900 to continue the installation process. In this case, the system does not need a graphical interface.
Of course, some people may need to configure vncserver in the server segment. In this case, the rpm package to be installed in CentOS is tigerv
~] # Su-ly[Ly @ localhost ~] $ VncpasswdPassword:Verify:}}}④ After setting a separate VNC password for the user, we will start the vncserver service at this time.{{{[Root @ localhost ~] # Service vncserver startStarting VNC server: 1: rootWARNING: The first attempt to start Xvnc failed, possibly because the fontCatalog is not properly configured. Attempting to determine an appropriateFont path for this system and restart
Previously telnet to the Linux system through the SSH command line, and have been trying to find Xwindow telnet way, have not been able to find.
Today look at the Linux Server Hacks book, a section is a remote GUI connection, is used Vnc,ubuntu under the Vnc4server is better.
1. Enable XDMCP
System->administration->login Screen Setup
Tab security->enable XDMCP
tab xdmcp--> You can disable "Honor Indirect Requests"
2. Install Required Packages (Vncserver and xinetd)
sudo apt-get install vnc4ser
/download/vnc4server_4.0-7.3_amd64.deb wget http://qt1.iq.usp.br/download/xvnc4viewer_4.0-7.3_amd64.deb sudo dpkg -i vnc4server_4.0-7.3_amd64.deb sudo dpkg -i xvnc4viewer_4.0-7.3_amd64.deb
3. SetVNCPasswdCode:Code:
sudo vncpasswd /root/.vncpasswd
4. AddVNCService to xinetd:Code: code:
sudo gedit /etc/xinetd.d/Xvnc
Enter this into the new file:
Code: code:
service Xvnc { type = UNLISTED disable = no socket_t
Password
Sudo vncpasswd/root/. vncpasswd
4. Add VNC service in xinetd
Sudo vi/etc/xinetd. d/Xvnc
The Xvnc content is as follows:
Service Xvnc
{
Type = UNLISTED
Disable = no
Socket_type = stream
Protocol = tcp
Wait = yes
User = root
Server =/usr/bin/Xvnc
Server_args =-inetd: 1-query localhost-geometry 1024x768-depth
16
-conditionsYour instance is in a running state. If the instance does not start, start the instance first.You have already downloaded and installed the VNC Viewer in your Windows system.Operation StepsTo do this, follow these steps:
Connect to a Linux instance remotely.
Run the command download script install_vnc_server.sh.
wget http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/41181/cn_zh/1504062842088/install_vnc_server.sh
Run the script as root and insta
environment is installed. Click "System"-"Preferences"-"Remote Desktop" to open the Configuration window.
After "allow others to view your desktop" is selected, VINO starts the server process vino-server and listens to TCP port 5900. If "allow other users to control your desktop" is not selected, the client can only watch and cannot manipulate it.
The VINO mode is very different from the XVNC described below. I think VINO is actually "Remote Assista
VNCSERVERS indicates that VNC runs on desktop 1. if you want to add another desktop, you can modify the configuration as follows:
VNCSERVERS = "1: user1 2: user2 3: user3"
3. set the vnc server access password
Use the vncpasswd command
4. on the RedHat system, run the following command to start VNC:
/Etc/init. d/vncserver start
5. View VNC Server startup status
[Root @ CPAYNET005 ~] # Netstat-tulnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q L
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.